home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Business Master (3rd Edition)
/
The Business Master (3rd Edition).iso
/
files
/
utilreen
/
dmplas
/
dmplas.exe
/
DLTEST-G.BAS
< prev
next >
Wrap
BASIC Source File
|
1991-08-15
|
1KB
|
35 lines
10 FILE$="DLTEST-G.PRN"
20 CR$=CHR$(13) :LF$=CHR$(10) :CRLF$=CR$+LF$ :ESC$=CHR$(27)
30 PRINT CRLF$:PRINT " Creating ";FILE$;" - Please wait ";
40 OPEN "O",#1,FILE$
50 PRINT#1,ESC$;"@";" DLTEST-G Graphics Commands";CRLF$
60 GOTO 210
70 PRINT#1,"Graphics command ESC '*'";G;"... ";D$;D;"dpi"
80 FOR I=1 TO 3 :PRINT ".";
90 PRINT#1, ESC$;"*";CHR$(G);CHR$(242);CHR$(0);CHR$(255);
100 FOR J=1 TO 15
110 N=128:FOR K=1 TO 8:PRINT#1,CHR$(N);:N=N/2:NEXT K
120 N=1:FOR K=1 TO 8:PRINT#1,CHR$(N);:N=N*2:NEXT K
130 NEXT J: PRINT#1,CHR$(255);CRLF$;
140 PRINT#1, ESC$;"*";CHR$(G);CHR$(242);CHR$(0);CHR$(255);
150 FOR J=1 TO 15
160 N=1:FOR K=1 TO 8:PRINT#1,CHR$(N);:N=N*2:NEXT K
170 N=128:FOR K=1 TO 8:PRINT#1,CHR$(N);:N=N/2:NEXT K
180 NEXT J
190 PRINT#1,CHR$(255);CRLF$;
200 NEXT I: RETURN
210 PRINT#1, ESC$;"3";CHR$(24);
220 DATA 60,75,"or ESC 'K'...",120,150,"or ESC 'L'...",120,150,"or ESC 'Y'..."
230 DATA 240,300,"or ESC 'Z'...",80,100,"(no equivalent)",72,75,"(no equivalent)"
240 DATA 90,100,"(no equivalent)",144,150,"(no equivalent)"
250 FOR G= 0 TO 7: READ D,E,D$ :PRINT ".";
260 GOSUB 70: PRINT#1, CRLF$
270 NEXT G
280 PRINT#1, ESC$;"3";CHR$(36)
290 PRINT#1,"Note: ESC '*' 7 ... is not accepted by all dot matrix printers"
300 PRINT#1," as a valid graphic command"
310 PRINT#1, CHR$(12);ESC$;"@";
320 CLOSE #1
330 SYSTEM
340 END